package com.lhkj.ct.meta.modules.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.lhkj.ct.base.enums.IBaseEnum;

/**
 * <p>
 *     作答状态
 * </p>
 */
public enum AnswerState implements IBaseEnum<Integer, String> {

    UNDONE(0,"未作答"),
    DOING(1,"进行中"),
    DONE(2,"已作答");


    @EnumValue
    private final int code;

    private final String desc;

    AnswerState(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return code;
    }

    @Override
    public String getLabel() {
        return desc;
    }
}
